grouping a restructuring json using javascript(Nodejs)

welcome to shbcf.ru